package com.wqtz.chechai.view.activities;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.wqtz.chechai.R;
import com.wqtz.chechai.base.BaseActivity;
import com.wqtz.chechai.presenter.BasePresent;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 项目名称： CheChai
 * 创建人 :  Kisum
 * 创建时间: 2017/1/22
 * 车型详情页面
 */
public class LoanCarInfoActivity extends BaseActivity {
    @BindView(R.id.iv_back)
    ImageView mIvBack;
    @BindView(R.id.rl_refrence_price)
    RelativeLayout mRlRefrencePrice;
    @BindView(R.id.rl_loan_carinfo)
    RelativeLayout mRlLoanCarinfo;

    @Override
    public void init() {
        ButterKnife.bind(this);
    }

    @Override
    public void loadData() {

    }

    @Override
    public int setContentViews() {
        return R.layout.activity_loan_carinfo;
    }

    @Override
    public BasePresent createPresenter() {
        return null;
    }

    @OnClick({R.id.iv_back,R.id.rl_refrence_price,R.id.rl_loan_carinfo})
    public void onClick(View view) {
        switch (view.getId()) {
            //返回
            case R.id.iv_back:
                this.finish();
                break;
            //参考估价
            case R.id.rl_refrence_price:
                Intent toRefrencePriceIntent = new Intent(this,RefrencePriceActivity.class);
                startActivity(toRefrencePriceIntent);
                break;
            //车型详情
            case R.id.rl_loan_carinfo:
                break;
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
        activitys.add(this); //添加当前的activity
    }
}
